<?php

use think\facade\Route;

// 消息组
Route::group(':version/Chat',function(){
    Route::post('/saveMessage', 'api/:version.Chat/saveMessage');
    Route::post('/getHeadImg', 'api/:version.Chat/getHeadImg');
    Route::post('/getNickName', 'api/:version.Chat/getNickName');
    Route::post('/messageLoad', 'api/:version.Chat/messageLoad');
    Route::post('/uploadImg', 'api/:version.Chat/uploadImg');
    Route::post('/getIdList', 'api/:version.Chat/getIdList');
    Route::post('/isRead', 'api/:version.Chat/isRead');
});

// 用户组
Route::group(':version/User',function(){
    Route::post('/userLogin', 'api/:version.User/userLogin');
    Route::post('/userRegister', 'api/:version.User/userRegister');
    Route::post('/getUsernameList', 'api/:version.User/getUsernameList');

});

// token获取，校验
Route::group(':version/Token',function(){
    Route::post('/getToken', 'api/:version.Token/getToken');
    Route::post('/verifyToken', 'api/:version.Token/verifyToken');
});
